#include "mainwindow.h"
#include <QApplication>
#include <stretchanimation.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    /*Q*/Widget w;
    StretchAnimation ani(&w);
    QList<QPushButton*> list;
    list << new QPushButton("1") << new QPushButton("2")
         << new QPushButton("3") << new QPushButton("4")
         << new QPushButton("5") << new QPushButton("6");
    ani.setButtonList(list);

    QPushButton button("ttt",w.getCentreWidget()/*&w*/);
    button.move(100,100);
    ani.setDirection(StretchAnimation::LEFT);
    ani.setStartPos(30);
    QObject::connect(&button,SIGNAL(clicked(bool)),&ani,SLOT(test()));
    w.show();
    return a.exec();
}
